<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>TFDatabaseObject Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">TFFoundation </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">“Timeface”</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	
	<optgroup label="Properties">
		
		<option value="//api/name/path">path</option>
		
	</optgroup>
	

	
	<optgroup label="Class Methods">
		
		<option value="//api/name/dataBaseDefaultRootPath">+ dataBaseDefaultRootPath</option>
		
	</optgroup>
	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/clearTableWithName:">- clearTableWithName:</option>
		
		<option value="//api/name/close">- close</option>
		
		<option value="//api/name/createTableWithSql:">- createTableWithSql:</option>
		
		<option value="//api/name/createTableWithTableName:listArray:">- createTableWithTableName:listArray:</option>
		
		<option value="//api/name/dropTableWithName:">- dropTableWithName:</option>
		
		<option value="//api/name/executeDatabaseWithHandlerBlock:">- executeDatabaseWithHandlerBlock:</option>
		
		<option value="//api/name/executeQueryWithSql:resultHandlerBlock:">- executeQueryWithSql:resultHandlerBlock:</option>
		
		<option value="//api/name/executeUpdateWithSql:">- executeUpdateWithSql:</option>
		
		<option value="//api/name/getAllDataArrayWithTableName:resultConvertBlock:">- getAllDataArrayWithTableName:resultConvertBlock:</option>
		
		<option value="//api/name/getDataArrayWithSql:resultConvertBlock:">- getDataArrayWithSql:resultConvertBlock:</option>
		
		<option value="//api/name/getDataCountWithTableName:">- getDataCountWithTableName:</option>
		
		<option value="//api/name/initWithDatabaseName:">- initWithDatabaseName:</option>
		
		<option value="//api/name/initWithDatabasePath:">- initWithDatabasePath:</option>
		
		<option value="//api/name/isTableExistsWithName:">- isTableExistsWithName:</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">TFDatabaseObject Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>NSObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>TFDatabaseObject.h<br />TFDatabaseObject.m</td>
</tr>
						</tbody></table></div>
					

                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>数据库工具类</p>
					</div>
					
					

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						<h2 class="task-title">Other Methods</h2>

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/dataBaseDefaultRootPath" title="dataBaseDefaultRootPath"></a>
	<h3 class="method-title"><code><a href="#//api/name/dataBaseDefaultRootPath">+&nbsp;dataBaseDefaultRootPath</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>数据库对象默认根目录</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nonnull NSString *)dataBaseDefaultRootPath</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>地址</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>数据库对象默认根目录</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						

						<a title="数据库和表操作" name="task_数据库和表操作"></a>
						<h2 class="task-title">数据库和表操作</h2>

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/initWithDatabaseName:" title="initWithDatabaseName:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithDatabaseName:">&ndash;&nbsp;initWithDatabaseName:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据数据库名称初始化数据库对象</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull instancetype)initWithDatabaseName:(nonnull NSString *)<em>databaseName</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>databaseName</code></th>
						<td><p>数据库名称</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>数据库对象</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据数据库名称初始化数据库对象</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/initWithDatabasePath:" title="initWithDatabasePath:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithDatabasePath:">&ndash;&nbsp;initWithDatabasePath:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据数据库本地路径地址初始化数据库对象</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull instancetype)initWithDatabasePath:(nonnull NSString *)<em>databasePath</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>databasePath</code></th>
						<td><p>数据库地址</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>数据库对象</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据数据库本地路径地址初始化数据库对象</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/path" title="path"></a>
	<h3 class="method-title"><code><a href="#//api/name/path">&nbsp;&nbsp;path</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>数据库路径</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, strong, readonly, nonnull) NSString *path</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>数据库路径</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/executeDatabaseWithHandlerBlock:" title="executeDatabaseWithHandlerBlock:"></a>
	<h3 class="method-title"><code><a href="#//api/name/executeDatabaseWithHandlerBlock:">&ndash;&nbsp;executeDatabaseWithHandlerBlock:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>数据库处理</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)executeDatabaseWithHandlerBlock:(nonnull TFDatabaseHandlerBlock)<em>handlerBlock</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>handlerBlock</code></th>
						<td><p>数据库处理block</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>数据库处理</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/executeUpdateWithSql:" title="executeUpdateWithSql:"></a>
	<h3 class="method-title"><code><a href="#//api/name/executeUpdateWithSql:">&ndash;&nbsp;executeUpdateWithSql:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>执行更新类的sql语句</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)executeUpdateWithSql:(nonnull NSString *)<em>sql</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>sql</code></th>
						<td><p>sql语句</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>是否成功</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>执行更新类的sql语句</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/executeQueryWithSql:resultHandlerBlock:" title="executeQueryWithSql:resultHandlerBlock:"></a>
	<h3 class="method-title"><code><a href="#//api/name/executeQueryWithSql:resultHandlerBlock:">&ndash;&nbsp;executeQueryWithSql:resultHandlerBlock:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>执行询问类的sql语句</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)executeQueryWithSql:(nonnull NSString *)<em>sql</em> resultHandlerBlock:(nonnull TFDatabaseResultHandlerBlock)<em>resultHandlerBlock</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>sql</code></th>
						<td><p>sql语句</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>resultHandlerBlock</code></th>
						<td><p>数据处理block</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>执行询问类的sql语句</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/createTableWithSql:" title="createTableWithSql:"></a>
	<h3 class="method-title"><code><a href="#//api/name/createTableWithSql:">&ndash;&nbsp;createTableWithSql:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据sql语句创建表</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)createTableWithSql:(nonnull NSString *)<em>sql</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>sql</code></th>
						<td><p>sql</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>是否创建成功</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据sql语句创建表</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/createTableWithTableName:listArray:" title="createTableWithTableName:listArray:"></a>
	<h3 class="method-title"><code><a href="#//api/name/createTableWithTableName:listArray:">&ndash;&nbsp;createTableWithTableName:listArray:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据表的对应的定义对象创建表</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)createTableWithTableName:(nonnull NSString *)<em>tableName</em> listArray:(nonnull NSArray&lt;TFDatabaseTableListModel&gt; *)<em>listArray</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>tableName</code></th>
						<td><p>表的名字</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>listArray</code></th>
						<td><p>列对象数组</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>是否创建成功</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据表的对应的定义对象创建表</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/isTableExistsWithName:" title="isTableExistsWithName:"></a>
	<h3 class="method-title"><code><a href="#//api/name/isTableExistsWithName:">&ndash;&nbsp;isTableExistsWithName:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据表名查询这张表是否存在</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)isTableExistsWithName:(nonnull NSString *)<em>name</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>name</code></th>
						<td><p>表名字</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>是否存在这张表</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据表名查询这张表是否存在</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/clearTableWithName:" title="clearTableWithName:"></a>
	<h3 class="method-title"><code><a href="#//api/name/clearTableWithName:">&ndash;&nbsp;clearTableWithName:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据表名清空表中的所有数据</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)clearTableWithName:(nonnull NSString *)<em>name</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>name</code></th>
						<td><p>表名字</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>是否清空成功</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据表名清空表中的所有数据</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/dropTableWithName:" title="dropTableWithName:"></a>
	<h3 class="method-title"><code><a href="#//api/name/dropTableWithName:">&ndash;&nbsp;dropTableWithName:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>删除某张表</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)dropTableWithName:(nonnull NSString *)<em>name</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>name</code></th>
						<td><p>表名字</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>是否删除成功</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>删除某张表</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/close" title="close"></a>
	<h3 class="method-title"><code><a href="#//api/name/close">&ndash;&nbsp;close</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>关闭数据库</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)close</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>关闭数据库</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						

						<a title="数据库中数据操作" name="task_数据库中数据操作"></a>
						<h2 class="task-title">数据库中数据操作</h2>

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/getDataCountWithTableName:" title="getDataCountWithTableName:"></a>
	<h3 class="method-title"><code><a href="#//api/name/getDataCountWithTableName:">&ndash;&nbsp;getDataCountWithTableName:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取表中数据的数量</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (NSInteger)getDataCountWithTableName:(nonnull NSString *)<em>tableName</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>tableName</code></th>
						<td><p>表名字</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>NSInteger</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>获取表中数据的数量</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/getDataArrayWithSql:resultConvertBlock:" title="getDataArrayWithSql:resultConvertBlock:"></a>
	<h3 class="method-title"><code><a href="#//api/name/getDataArrayWithSql:resultConvertBlock:">&ndash;&nbsp;getDataArrayWithSql:resultConvertBlock:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>根据sql语句获取表中的数据</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSArray *)getDataArrayWithSql:(nonnull NSString *)<em>sql</em> resultConvertBlock:(nonnull TFDatabaseResultConvertBlock)<em>resultConvertBlock</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>sql</code></th>
						<td><p>sql语句</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>resultConvertBlock</code></th>
						<td><p>结果转换block</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>数据数组</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>根据sql语句获取表中的数据</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/getAllDataArrayWithTableName:resultConvertBlock:" title="getAllDataArrayWithTableName:resultConvertBlock:"></a>
	<h3 class="method-title"><code><a href="#//api/name/getAllDataArrayWithTableName:resultConvertBlock:">&ndash;&nbsp;getAllDataArrayWithTableName:resultConvertBlock:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取所有的数据</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nonnull NSArray *)getAllDataArrayWithTableName:(nonnull NSString *)<em>tableName</em> resultConvertBlock:(nonnull TFDatabaseResultConvertBlock)<em>resultConvertBlock</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>tableName</code></th>
						<td><p>表名</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>resultConvertBlock</code></th>
						<td><p>结果转换block</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>数据数组</p>
			</div>
			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>获取所有的数据</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">TFDatabaseObject.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2017 “Timeface”. All rights reserved. Updated: 2017-08-17</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>